﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using ZFCNew.Views;

namespace ZFCNew
{
    public partial class Disclaimer : UserControl
    {
        public Disclaimer()
        {
            // Required to initialize variables
            InitializeComponent();
        }

        private void FeedbackClick(object sender, System.Windows.RoutedEventArgs e)
        {
            var feedbackWindow = new ZfcWindow();
            feedbackWindow.VerticalAlignment = VerticalAlignment.Top;
            feedbackWindow.Margin = new Thickness(0, 170, 0, 0);
            var fb = new Feedback();
            feedbackWindow.Content = fb;
            fb.CancelButton.Click += (s, a) => feedbackWindow.DialogResult = false;
            fb.OKButton.Click += (s, a) => feedbackWindow.DialogResult = true;
            feedbackWindow.Show();
        }
    }
}